package com.niit.dao;

import com.niit.entity.Student;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface StudentDao {
    Student queryById(String sid);

    List<Student> queryAllByLimit(Student student, @Param("pageable") Pageable pageable);
    long count(Student student);
    int insert(Student student);
    int insertOrUpdateBatch(@Param("entities")List<Student> entities);
    int update(Student student);
    int deleteById(String sid);
    List<Student> queryByConditions(Student student);



}
